<?php

namespace App\Console\Commands;

use App\Http\Controllers\AssistantController;
use Illuminate\Console\Command;
use Illuminate\Http\JsonResponse;

class TestAI extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'app:ai';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Command description';

    /**
     * Execute the console command.
     */
    public function handle()
    {
        $message = 'Вызови функцию test_call_func';
        /** @var JsonResponse $report */
        $report = (new AssistantController())->generateAssistantsResponse($message);

        dd($report->getOriginalContent());

    }
}
